import SwiftUI

struct WelcomeView: View {
    @Binding var isWelcomeShown: Bool
    
    var body: some View {
        VStack(spacing: 16) {
            Text("欢迎使用长短记忆")
                .font(.title)
                .fontWeight(.bold)
            
            Text("这是一个模拟聊天应用，具有记忆功能")
                .font(.subheadline)
                .multilineTextAlignment(.center)
            
            Image(systemName: "brain")
                .resizable()
                .aspectRatio(contentMode: .fit)
                .frame(width: 80, height: 80)
                .foregroundColor(.blue)
                .padding()
            
            Button("开始使用") {
                withAnimation {
                    isWelcomeShown = false
                }
            }
            .font(.headline)
            .foregroundColor(.white)
            .padding()
            .background(Color.blue)
            .cornerRadius(10)
        }
        .padding(30)
        .frame(width: 400, height: 350)
        .background(Color.white)
        .cornerRadius(20)
        .shadow(radius: 10)
    }
} 